<template>
  <div class="payment"></div>
</template>

<script>
import { mapMutations } from 'vuex';
import { Local } from '@/common/storage';

export default {
  data() {
    return {
      shop_id: null
    };
  },
  created() {},
  mounted() {
    this.shop_id = this.$route.query.shop_id;

    this.$confirm({ title: '暂不支持支付功能' }).then(res => {
      this.$router.push('/home');
    });
  },
  methods: {
    ...mapMutations(['CLEAR_CART'])
  },
  beforeDestroy() {
    this.CLEAR_CART(this.shop_id);
    Local.remove('confirmOrder');
  }
};
</script>
